<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<h2><b>附件统计</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tr3"><td width="20%">附件总计(个)</td><td>$A_count</td></tr>
<tr class="tr3"><td>附件占用空间(KB)</td><td>$A_size</td></tr>
<tr class="tr3"><td>附件平均大小(KB)</td><td>$average</td></tr>
<tr class="tr3"><td>总计下载次数(次)</td><td>$A_hits</td></tr>
</table>
<br/>
<form action=$basename method=post>
<input type=hidden name=action value='delete'> 
<h2><b>前二十个最热门附件</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tac tr3 s3"><td width="60">附件ID</td><td width="30%">附件名称</td><td>附件下载</td><td width=12%>附件大小</td><td width="70">下载次数</td><td >所在版块</td>
<td width=4%>删</td></tr>
<!--
EOT;
$num=0;
foreach($M_hits as $thread){
$num++;
print <<<EOT
-->
<tr class="tac tr3">
<td>$num</td>
<td class="tal">$thread[name]</td>
<td class="tal"><a href="$attachpath/$thread[url]">$thread[url]</a></td><td>$thread[size](KB)</td>
<td>$thread[hits]</td>
<td><a href='thread.php?fid=$thread[fid]'>$thread[forum]</a></td>
<td><input type='checkbox' name='urlarray[$thread[aid]]' value=$thread[url]></td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
<center><input type="button" name="chkall" class="btn" value="全 选" onclick="CheckAll(this.form)">
<input type="submit" class="btn" value="提 交"></center></form><br>

<form action=$basename method=post>
<input type=hidden name=action value='delete'> 
<h2><b>前二十个最大附件</b></h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tac tr3 s3"><td>附件ID</td><td width=30%>附件名称</td><td>附件下载</td><td width=12%>附件大小</td><td>下载次数</td><td>所在版块</td>
<td width=4%>删</td></tr>
<!--
EOT;
$num=0;
foreach($M_size as $thread){
$num++;
print <<<EOT
-->
<tr class="tac tr3">
<td>$num</td>
<td class="tal">$thread[name]</td>
<td><a href="$attachpath/$thread[url]">$thread[url]</a></td><td align=center>$thread[size](KB)</td>
<td>$thread[hits]</td>
<td><a href='thread.php?fid=$thread[fid]'>$thread[forum]</a></td>
<td>
<input type='checkbox' name='urlarray[$thread[aid]]' value=$thread[url]>
</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
<center><input type="button" name="chkall" class="btn" value="全 选" onclick="CheckAll(this.form)">
<input type="submit" name="hello" class="btn" value="提 交"></center></form><br>
<!--
EOT;
include_once PrintEot('adminbottom');
?>
-->